package com.ruoyi.app.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ruoyi.app.R
import com.ruoyi.app.model.entity.BannerEntity

/**
 *  工作台适配器
 */
class WorkManageAdapter : BaseQuickAdapter<BannerEntity, BaseViewHolder>(R.layout.item_index) {

    override fun convert(holder: BaseViewHolder, item: BannerEntity) {
        holder.setText(R.id.tv_name, item.title)
        holder.setImageResource(R.id.iv_icon, item.imageResource)
    }

}